package com.zlzlib.common.bean;

import lombok.Getter;

/**
 * 状态枚举
 *
 * @DateTime: 2023/2/14 15:56
 * @Author zlz
 * @Version 1.0
 */
@Getter
public enum ResultCode implements StatusCode {
    /**
     * 状态
     */
    SUCCESS(200, "请求成功!"),
    FAILED(500, "请求数据异常!"),
    UPDATE(449, "请重启更新当前系统!"),
    LOSS_TOKEN(510, "当前用户登录过期请重新登录!");
    /**
     * 状态码
     */
    private final int code;
    /**
     * 状态消息
     */
    private final String msg;

    /**
     * 返回状态
     */
    ResultCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
